// import com.alibaba.druid.sql.ast.SQLExpr_ptr;
// import com.alibaba.druid.sql.ast.SQLLimit_ptr;
// import com.alibaba.druid.sql.ast.SQLOrderBy_ptr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlShowSlowStatement.h"
#include "../../../../ast/SQLExpr.h"
#include "../../../../ast/SQLLimit.h"
#include "../../../../ast/SQLOrderBy.h"
#include "../../visitor/MySqlASTVisitor.h"

SQLLimit_ptr MySqlShowSlowStatement::getLimit()
{
  return limit;
}

void MySqlShowSlowStatement::setLimit(SQLLimit_ptr limit)
{
  this->limit = limit;
}

SQLOrderBy_ptr MySqlShowSlowStatement::getOrderBy()
{
  return orderBy;
}

void MySqlShowSlowStatement::setOrderBy(SQLOrderBy_ptr orderBy)
{
  this->orderBy = orderBy;
}

SQLExpr_ptr MySqlShowSlowStatement::getWhere()
{
  return where;
}

void MySqlShowSlowStatement::setWhere(SQLExpr_ptr where)
{
  this->where = where;
}

BOOL_ptr MySqlShowSlowStatement::isPhysical()
{
  return physical;
}

void MySqlShowSlowStatement::setPhysical(BOOL_ptr physical)
{
  this->physical = physical;
}

BOOL_ptr MySqlShowSlowStatement::isFull()
{
  return full;
}

void MySqlShowSlowStatement::setFull(BOOL_ptr full)
{
  this->full = full;
}

void MySqlShowSlowStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlShowSlowStatement)))
  {
    acceptChild(visitor, where);
    acceptChild(visitor, orderBy);
    acceptChild(visitor, limit);
  }
  visitor->endVisit(SharedObject(MySqlShowSlowStatement));
}
